
export const jobDetailUrl = (job: any) => {
  const { encryptJobId, lid, securityId } = job
  const baseUrl = 'https://www.zhipin.com/job_detail'
  const search = new URLSearchParams()
  search.append('lid', lid)
  search.append('securityId', securityId)
  const searchParams = search.toString()
  return `${baseUrl}/${encryptJobId}.html?${searchParams}`
}


export const gongsiUrl = (job: any) => {
  const { encryptBrandId } = job
  const baseUrl = 'https://www.zhipin.com/gongsi'
  const search = new URLSearchParams()
  search.append('ka', 'job-cominfo')
  const searchParams = search.toString()
  return `${baseUrl}/${encryptBrandId}.html?${searchParams}`
}
